package com.ocom.company.controller;

import com.ocom.common.constant.CompanyServiceUrl;
import com.ocom.common.entity.human.EntityBizApply;
import com.ocom.common.resp.Result;
import com.ocom.common.utils.ResultUtil;
import com.ocom.company.service.BizApplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ApplyController {

    @Autowired
    BizApplyService bizApplyService;

    @PostMapping(CompanyServiceUrl.URL_applyOne)
    public Result applyOne(@RequestBody EntityBizApply entityBizLeaveApply){
        return ResultUtil.success(bizApplyService.getApplyOne(entityBizLeaveApply.getComId(),entityBizLeaveApply));
    }
}
